# -*- encoding: utf-8 -*-
"""
    Created by Rachel on 2025/03/06
"""
from sqlalchemy import Column, String

from applications.libs.db import BaseMixin


class User(BaseMixin):
    __tablename__ = "user"
    __table_args__ = {"comment": "用户表"}

    account = Column(String(32), unique=True, comment="账号")
    password = Column(String(128), comment="密码")
    username = Column(String(32), comment="用户名")
    email = Column(String(32), comment="邮箱")
    phone = Column(String(32), comment="手机号")


class Employee(BaseMixin):
    __tablename__ = "employee"
    __table_args__ = {"comment": "人员"}

    name = Column(String(32), comment="姓名")
    code = Column(String(32), comment="编码")
    email = Column(String(32), comment="邮箱")
    phone = Column(String(32), comment="手机号")
    address = Column(String(256), comment="家庭住址")
    image = Column(String(128), comment="头像")
    user_code = Column(String(32), comment="用户编码")